#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask
from .jwt_plugin import init_jwt
from .db_plugin import init_db
from .migrate_plugin import init_migrate
from .logger_plugin import init_loguru
from .redis_plugin import init_redis
from .mail_plugin import init_mail


def init_plugs(app: Flask):
    """注册扩展"""
    init_jwt(app)
    init_db(app)
    init_migrate(app)
    init_loguru(app)
    init_redis(app)
    init_mail(app)
